package com.clqteam.serviceimpl;

import com.clqteam.dao.updataShDao;
import com.clqteam.daoimpl.updataShDaoImpl;
import com.clqteam.model.Product;
import com.clqteam.service.updataShService;

public class updataShServiceImpl implements updataShService{
	updataShDao upd = new updataShDaoImpl();

	@Override
	public int updataShByPid(int pId, int pAmount) {
		
		return upd.updataShByPid(pId, pAmount);
	}

	@Override
	public void setdrInfo(String drInfo,String drTime,int eId,String eName) {
		
		upd.setdirInfo(drInfo, drTime, eId, eName);
		
	}



	@Override
	public Product getProuductCountByPid(int pId) {
		return upd.getProuductCountByPid(pId);
	}

	@Override
	public void updataOrder(int oId, double oMoney) {
		upd.updataOrder(oId, oMoney);
		
	}

	@Override
	public int getOidByPid(int pId) {
		return upd.getOidByPid(pId);
	}

	@Override
	public void updataOrderInfo(int oId, int poAmount) {
		upd.updataOrderInfo(oId, poAmount);
		
	}

	

}
